home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 101 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: cpsc.ucalgary.ca!magee
  2. From: magee@cpsc.ucalgary.ca (Russell Magee)
  3. Newsgroups: comp.os.os9,comp.sys.m68k
  4. Subject: 68332 CSBOOT* help?
  5. Date: 18 Jan 1996 08:22:00 GMT
  6. Organization: University of Calgary CPSC
  7. Message-ID: <4dkvv8$v65@linux.cpsc.ucalgary.ca>
  8. NNTP-Posting-Host: fsj.cpsc.ucalgary.ca
  9.  
  10.   Hello all,
  11.  
  12.   I feel bad asking this question, but I'm under the gun, so to speak, and
  13. my boss is getting very uncomfortable with some upcoming deadlines, so I'd
  14. appreciate any info!
  15.  
  16.   The situation is this: We're in the process of porting OS-9 to a 68332
  17. system with SRAM, serial stuff etc. Now according to the board's designer,
  18. the system has been designed to be as close to the 68332 EVS as possible.
  19.   There are two major (minor?) differences, though: the static RAM's
  20. Write chip selects are swapped with respect to the EVS's RAM setup (CS0-1).
  21. No prob, that's just a minor change in the config files and a new make of
  22. RomBug. Second difference, the EPROM is one 16-bit wide 27C1024 instead of
  23. two 8-bit wide EPROMS.
  24.  
  25.   It made sense (to me) to get OS-9's RomBug up and running on the EVS first.
  26. So far, so good. RomBug comes up fine. Now, I try out the slightly massaged
  27. RomBug on our '332 system, and PLOP. Nothing, except the CPU gets stuck in
  28. an endless cycle of RESET*/HALT*. However, if I assemble the SAME code, but
  29. at origin $0 instead of origin $60000 (where the EVS expects its ROM), the
  30. CPU actually seems to start out ok. (A logic analyzer we borrowed actually
  31. showed the initial SP/PC fetch, and the first few branch instructions being
  32. found in the EPROM, from base $0.)
  33.  
  34.   I can't seem to figure out how CSBOOT* is mapping the EPROM in the '332's
  35. address space. The EVS executes Rombug fine at $60000; the start of the
  36. EPROM is like this:
  37.  
  38. Offset    00  01  02  03  04  05  06  07  . . .
  39. ------    --  --  --  --  --  --  --  --
  40. $00000    00  00  49  00  00  06  04  c4 ..
  41.  
  42. This means the CPU's initial SP will be $4900, PC will be $6004c4, which
  43. works. But HOW does the EVS find the EPROM at $60000 immediately after
  44. bootup? My understanding of the 332 is that the EPROM (and all other
  45. peripherals hooked up to the chip select lines) must be mapped into
  46. memory by the boot code (via the CSAR/CSORs). If this is so, how does
  47. the EPROM get up to $60000 at the very start?
  48.  
  49.   A local hardware guru we've talked to says that the '332 must execute
  50. the EPROM from $0.l after a reset, then the software must remap the EPROM
  51. afterward if desired.
  52.  
  53.  Sorry for the long message. I am kind of at a dead end here...email replies
  54. would be appreciated.
  55.  
  56.  -Russ Magee
  57.   magee@cpsc.ucalgary.ca
  58.  
  59.